
import  { wallet as Wallet} from '../../utils/wallet'

Page({

  //页面的初始数据
  data: {
    money:'00.00',
    wallet_icon:''
  },

  //生命周期函数--监听页面显示
  onShow: async function () {
    //获取 会员钱包余额的方法
    let wallet = await Wallet.walletMoney()
    this.setData({
      money: wallet.balance,
      wallet_icon: wallet.balance_icon
    })
  }

})